'use strict';

const Controller = require('egg').Controller;

class DetailController extends Controller {
  async index() {
    const {ctx} = this;
    // console.log(ctx.query);
    var {id} = ctx.query;
    // console.log(id);
    const res = await ctx.service.movie.getMovieDetailOrSearch({id:id});
    // console.log(res);
    ctx.body = {
        msg:"电影详情",
        res
    }
  }
 
}

module.exports = DetailController;
